package com.thm.tfast.modules.sys.model.dto.menu;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author THM
 * @date 2022/10/29
 * @desc 菜单修改dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MenuUpdateDto {

    @ApiModelProperty(value = "菜单ID", required = true)
    @NotNull(message = "菜单ID不能为空")
    private Long id;

    @ApiModelProperty(value = "父级ID 0-表示没有父级 ")
    private Long parentId;

    @ApiModelProperty(value = "菜单标题")
    @Size(max = 12, message = "菜单标题不能超过12位")
    private String title;

    @ApiModelProperty(value = "菜单层级")
    private Integer level;

    @ApiModelProperty(value = "菜单排序")
    private Integer sort;

    @ApiModelProperty(value = "前端路径")
    @Size(max = 36, message = "前端路径不能超过36位")
    private String path;

    @ApiModelProperty(value = "前端图标")
    private String icon;

    @ApiModelProperty(value = "前端隐藏 0-隐藏  1-显示")
    private Integer hidden;

    @ApiModelProperty(value = "删除标识 0-删除 1-未删除")
    private Integer delFlag;
}
